define(function() {
    return ['$scope','$rootScope','$timeout','$location','$interval', function($scope, $rootScope,$timeout, $location,$interval) {
    	$('#side>ul>li>.sidebox').mouseover(function() {
			$(this).addClass('slide');
			$('#side>ul>li>.sidebox>span').addClass('show');
		}).mouseout(function() {
			$(this).removeClass('slide');
			$('#side>ul>li>.sidebox>span').removeClass('show');
		})

		$('#top').click(function() {
			//点击“回到顶部”，滚动到顶部，并带动画效果
			$("html,body").animate({scrollTop:0},500);
		})


		$scope.goWeiBo = function(){
			window.open("http://weibo.com/winhccn?refer_flag=1001030102_",'_blank');
		}
		
		$scope.goQQFir = function(){
			window.open("http://wpa.qq.com/msgrd?v=3&uin=3533794980&site=qq&menu=yes",'_blank');
		}
		
		$scope.goQQSec = function(){
			window.open("http://wpa.qq.com/msgrd?v=3&uin=2148767185&site=qq&menu=yes",'_blank');
		}
        $scope.$apply();
    }];
});